The phrase "in case" is used to introduce a precautionary measure or contingency plan. It means that something is done or prepared in advance, just in case an unexpected event occurs. For example, if someone says "I brought my umbrella with me in case it rains," they are indicating that they have taken a precautionary measure by bringing the umbrella, in case it starts to rain while they are outside.